contains

abstract operator fun contains(element: Any): Boolean

Returns true if the element is equal to the value of this Either, or false otherwise.

Return

true if the element is equal to the value of this Either, or false otherwise.

Parameters

element

An element of any type.